home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / wordproc / hshell1.arj / BROWSER.HYP < prev    next >
Text File  |  1993-12-29  |  8KB  |  354 lines

  1. .REMARK
  2. Demo frameset - browser
  3. Copyright (c) 1989 N.G.Taylor
  4. .CHECK +fa
  5. Check both menu types
  6.  
  7. .HEADER
  8.  ~M~TwF~TKile~Kf~E│~M~TwO~TKptions~Ko~E│~M~TwH~TKelp~Kh~E│~AHISTORY $6~C33~Pb@B~E│ $1 - $2
  9. ═════╧═══════╧════╧═════════════╧════════════════════════════════════════
  10. .
  11. .FOOTER
  12. ~L22
  13. ═══════════════════════════════════════════════════════════════════════════════
  14.  F1 ~AHELP~PMHelp~E F2 ~ACONTENTS~PA@C~E F3/4 ~ABACKTRACK~PB~E F5 ~ANOTEPAD~PA@R~E F6 ~ASEARCH~PA@X?Search string~E F7 ~ATYPE FILE~PT$_~E F10 ~AQUIT~PQ~E
  15. .
  16. .REMARK
  17. Various menus, showing menu option text on left and action on right
  18. .MENU File
  19. Directory   |Y@d*.*
  20. Change dir. |C@L*.
  21. Browse dir. |SBrowse
  22. Quit        |Q
  23. .
  24.  
  25. .MENU Options
  26. Create notepad   |O01;pO.K.
  27. No backtrack     |O20
  28. Backtrack on     |O21
  29. Disable warnings |O80
  30. Warnings on      |O83
  31. .
  32.  
  33. .MENU Help
  34. Information |NInfo
  35. Selecting   |NSelecting
  36. Funct. keys |NFkeys
  37. .
  38. .SCRIPT MENBAR
  39. ZX2;ZY1
  40. .
  41. .REMARK
  42. Add extension of file, followed by action to perform for that file.
  43. The variable $< contains the full file name
  44. The actions 'L' below are dummy actions for extensions for which
  45. no action is required. Default action is to display the file as text.
  46. Directories, .TXT and .BAT files are handled in the BROWSE script below.
  47. Additional special cases can be added there as required.
  48. .MENU extns
  49. OBJ|L
  50. LIB|L
  51. DBF|L
  52. SYS|L
  53. EXE|Nexec
  54. COM|Nexec
  55. PIC|G$<
  56. PCX|G$<
  57. HYP|dHS $<
  58. NTE|t$<
  59. HSF|c$<
  60. MNU|A@F$<
  61. *|T$<
  62. .
  63. .REMARK
  64. This is a menu of things which can be done to directories.
  65. .MENU Directory
  66. Change to|C$<
  67. Show     |DDIR/W $<
  68. .
  69. .REMARK
  70. This is a menu for options on files with extension .TXT or .BAT
  71. .MENU Text File
  72. Type     |T$<
  73. Edit     |dHN $<
  74. .
  75. .REMARK
  76. general purpose confirm note:-
  77. call using parameter e.g.:-
  78.  NConfirm(Delete file)
  79. Sets flag C if OK selected, else clears it.
  80. .NOTE Confirm
  81.      $\
  82.  ┌──────────┐  ┌──────────┐
  83.  │ ~A   OK   ~PO*C1~Ko~E │  │ ~A CANCEL ~PO*C~Kc~E │
  84.  └──────────┘  └──────────┘
  85. .
  86. .NOTE File type
  87.  
  88.  ~a
  89.      $>: $\ file  ~Y4~b1
  90.  
  91. .
  92. .NOTE Info
  93.    - $9 -
  94.  Frame: $1
  95.  Title: $2
  96.  File : $3
  97.  Date : $4
  98.  Time : $5
  99.  ~ABacktrack ~O2 ~PO2A;NInfo~E with $6 entries
  100.  ~AAutoref ~O4 ~PO4A;NInfo~E
  101.  Error status $? ~C32~AClear~PYah;NInfo~E
  102. .
  103.  
  104. .NOTE Selecting
  105. Press LEFT button to select item
  106. Press RIGHT mousebutton to select
  107. menu bar. Use TAB to move to next
  108. reference, Shift TAB for previous
  109. .
  110. .NOTE Browser
  111. This is a sample directory browser
  112.  
  113. Select directories to move around.
  114.  
  115. Select text files to type them.
  116. .
  117. .NOTE exec
  118. An action could be
  119. added to execute the
  120. selected program.
  121. .
  122.  
  123. .NOTE Fkeys
  124. F1 Help            F2  Browse
  125. F3 Backtrack       F4  Select back
  126. F5 Notepad actions F6  Search text
  127. F7 Type file       F8  Do action    
  128. F9 DOS Shell       F10 Quit
  129. .
  130. .REMARK
  131. Directory browser with actions depending on file type.
  132. See also MENU 'extns' above.
  133. .SCRIPT Browse
  134. -- Display note about it
  135. NBrowser
  136. -- display directory list
  137. Lpd;Y@L*.*
  138. -- loop back if error set
  139. jspd
  140. -- jump depending on extension of selected file
  141. J$>
  142. -- by default, use lookup menu to find action to take 
  143. A@Mextns[$>];Jpd
  144. -- no extension - assume directory
  145. L
  146. L.
  147. A@Mdirectory;Jpd
  148. -- various text files
  149. LTXT
  150. LBAT
  151. LC
  152. A@MText File;Jpd
  153. .
  154. .SCRIPT Identify
  155. -- display directory list
  156. Lpd;Y@L*.*
  157. -- loop back if error set
  158. jspd
  159. v>;jeDIRECT
  160. v>.;jeDIRECT
  161. -- display translation - uses format pattern to add word 'file'
  162. Vx@Mextid[$>];NFile type($x);Jpd
  163. -- no extension - assume directory
  164. LDIRECT
  165. C$<
  166. Jpd
  167. .
  168. .MENU extid
  169. PCX|Paintbrush image
  170. PIC|BLOAD image
  171. HYP|HS Hyperfile
  172. HIX|HS Hyperfile index
  173. MNU|HS Menu
  174. HSF|HS Script
  175. NTE|HS Note
  176. CFG|Configuration
  177. HXC|HI index
  178. TMP|Temporary
  179. BAK|HI or other Backup
  180. HCM|HCX compressed
  181. HXP|HCX expanded
  182. LZH|LHARC archive
  183. ZIP|PKZIP archive
  184. ZOO|ZOO archive
  185. ARC|ARC archive
  186. C|C program source
  187. H|C program header
  188. PAS|Pascal program source
  189. FOR|Fortran program source
  190. BAS|BASIC program source
  191. DAT|Data
  192. TXT|Text
  193. ASC|ASCII text file
  194. HSL|HS script language
  195. HSI|HS script language include
  196. HIN|HS script language include
  197. DEF|HS script language definition
  198. XAM|HS CAI exam
  199. EXE|Program
  200. COM|Program
  201. SYS|DOS system
  202. OBJ|Program object
  203. LIB|Object library
  204. DBF|dBase database
  205. DBT|dBase Memo
  206. NDX|dBase Index
  207. NTX|Clipper Index
  208. PRG|dBase program
  209. HLP|Windows help
  210. INI|Initialisation
  211. BMP|Windows bitmap image
  212. PIF|Windows program information
  213. FON|Windows font
  214. WRI|Windows write document
  215. RLE|Windows RLE
  216. LST|List text
  217. DLL|Windows Dynamic link library
  218. FW2|FrameWork II
  219. WKS|Spreadsheet
  220. WK1|Spreadsheet
  221. DOC|Document text
  222. ME|READ.ME text
  223. XRF|HC cross reference
  224. CHK|HC check output
  225. *|Unidentified extension
  226. .
  227. .SCRIPT SETUP
  228. O#
  229. -- show menu symbols + use first letter + immediate menus
  230. O17
  231. -- text as grey on black
  232. OTWB
  233. -- F1 is for help menu
  234. KF1MHelp
  235. KM1HELP
  236. -- Escape key selects MENBAR script
  237. KH4SMENBAR
  238. -- Various variables for funny characters
  239. Vt°
  240. Vd$
  241. -- defaults
  242. Vsfirst
  243. VxDog
  244. VnFrodo
  245. .
  246.  
  247. .FRAME Browser
  248. .TITLE DOS directory structure browser
  249.  
  250.     This option provides a simple MSDOS directory structure browser.
  251.  
  252. [1]    Press This to browse -> ~SBrowse~K1~E
  253.  
  254. [2]    Browse and identify file -> ~SIdentify~K2~E
  255.  
  256. [3]    This hyperfile contains a number of ~Fuseful items~K3~E for
  257.     authors to include in their own hyperfiles
  258.  
  259. [4]    Also some handy ~FGadgets~K4~E are provided for authors
  260.  
  261. [9]    ~AQuit~PQ~K9~E
  262. .
  263. .FRAME useful items
  264. .TITLE items for authors to use
  265.     A number of useful items are provided in this hyperfile.
  266.  
  267.     An error number menu provides a useful means of getting the
  268.     text associated with an error status. The action
  269.  
  270.         p@MError text($$?)
  271.  
  272.     Will display the error text associated with the last error.
  273.  
  274.         The .HEADER demonstrates how a simple menu bar can be set up.
  275.  
  276.         The Info note shows how options can be toggled
  277. .
  278. .FRAME Gadgets
  279. .TITLE Useful accessories for hyperfiles
  280.  
  281. [1]    ~nThe confirm box~Psconf(feed $x)~K1~E
  282.  
  283. [2]    The selector - ~n$x~PVx@mselector;y~K2~E
  284.  
  285. [3]    The stepper - ~n$s~PVs@mstepper[$s];y~K3~E
  286.  
  287. [4]    The dialogue box - ~nName input~Pndialogue;y~K4~E  {$n}
  288.  
  289. [5]    ~FDescription~K5~E - Details about gadgets
  290. .
  291. .MENU selector
  292. Dog
  293. Cat
  294. Hamster
  295. Goldfish
  296. Rabbit
  297. Mouse
  298. Elephant
  299. .
  300. .SCRIPT conf
  301. -- get confirm response in flag C
  302. A@NConfirm
  303. -- if C not set
  304. zCp$n the $x growls menacingly
  305. -- if C set
  306. aCp$n the $x purrs gratefully
  307. .
  308. .REMARK
  309. wrapping menu as stepper
  310. .MENU stepper
  311. first|second
  312. second|third
  313. third|fourth
  314. fourth|fifth
  315. fifth|sixth
  316. sixth|seventh
  317. seventh|eighth
  318. eighth|ninth
  319. ninth|first
  320. .
  321. .REMARK
  322. simple dialogue box for name input
  323. .NOTE dialogue
  324.  
  325.  Enter the name of your $x here
  326.  
  327.    Name: ~I$n~W20~PVn%s;y~E~Q
  328.  
  329. .
  330. .FRAME description
  331. .TITLE details about gadgets
  332. ~A~PP;B~E~Q ~HThis is used for immediate return after confirmation
  333.     The confirm box is useful for confirming an action before it
  334.     is executed, in cases where some irreversible action is to
  335.     take place. e.g. a file is to be deleted. The confirm box can
  336.     be extended to any number of options.
  337.  
  338.     The selector presents a menu from which a new value for a
  339.     variable can be chosen. The variable can be used as the
  340.     reference text to show the current value.
  341.  
  342.     The stepper is similar to the selector, only allows the set
  343.     of values to be stepped through one at a time.
  344.  
  345.     The dialogue box is used to input a string from the user. It
  346.     is similar to the prompted input action, but it permits extra
  347.     information to be displayed around the input field, such as
  348.     the values of other variables
  349. .
  350.  
  351. .REMARK
  352. end of hyperfile
  353. .
  354.